package com.example.mycalc;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        double result = intent.getDoubleExtra("result",0.0);
        Log.d("broad","Recevie broadcast "+result);
        Toast.makeText(context,"Intent Detected "+ result, Toast.LENGTH_LONG).show();

    }
}
